package edu.hcmus.sow.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import edu.hcmus.sow.domain.Forum;
import edu.hcmus.sow.domain.Topic;

/**
 * DAO to manage Topic entities.
 * 
 */
public interface TopicDAO extends GenericDAO<Topic, Integer> {
   public Topic findByID (Integer id) throws DataAccessException;
   public int getLatestTopic (Forum forum) throws DataAccessException;
	public List<Topic> getTopicsByForumID(Forum forum) throws DataAccessException;
	public int getNumberTopicByForum (Forum forum) throws DataAccessException;
	public int getFormIDByTopicID (Integer topicID) throws DataAccessException;
}